public class HelloJni {
    // export LD_LIBRARY_PATH=...
    static {
        System.loadLibrary("hello");
    }

    private native void sayHello(String name);

    public static void main(String[] args) {
        new HelloJni().sayHello("JNI");
    }
}